package com.example.main.mvp.contract;

import com.example.lib_core.http.BaseObserver;
import com.example.lib_core.mvp.model.IModel;
import com.example.lib_core.mvp.view.IView;
import com.example.main.bean.TravelsBean;

import java.util.List;

public interface MainContract {

    interface View extends IView {

        void initAdapter(List<TravelsBean> travelsBeans);

        int currPage();
    }

    interface Model extends IModel {

        void requestTravels (int page, BaseObserver<List<TravelsBean>> observer);
    }
}
